<?php


namespace app\binarytreedepth\controller;


class Test
{
    public function look()
    {
        // 测试
        $a = new Node();
        $b = new Node();
        $c = new Node();
        $d = new Node();
        $e = new Node();
        $f = new Node();

        $a->value = "A";
        $b->value = "B";
        $c->value = "C";
        $d->value = "D";
        $e->value = "E";
        $f->value = "F";

        $a->left  = $b;
        $a->right = $c;
        $b->left  = $d;
        $b->right = $e;
        $c->left  = $f;
//        dump($a);
        $bt = new Bt();
        $bt->in_order($a);
    }
}